<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="jquery,颜色拾取器">
<meta name="description" content="一款非常好用的jquery颜色拾取器。">
<title>一款基于jQuery的颜色拾取器</title>
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.bigcolorpicker.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js?version={$version}"></script>
<script type="text/javascript" src="js/jquery.bigcolorpicker.min.js?version={$version}"></script>
<script type="text/javascript">
$(function(){
	$("#c1").bigColorpicker("c1");
	$("#btn").bigColorpicker("c2");
	$("#img").bigColorpicker(function(el,color){
		$(el).css("background-color",color);
	});
	$(".ku").bigColorpicker(function(el,color){
		$(el).css("background-color",color);
	});
	$("#c5").bigColorpicker("c5","L",3);
});
</script>
<style type="text/css">
.demo{width:400px; margin:20px auto}
.demo p{padding-bottom:10px}
#img{width:25px;height:25px;display:block; border:1px solid #d3d3d3;}
.ku{width:25px;height:25px;display:block; border:1px solid #d3d3d3; float:left; margin-right:10px}
.clear{clear:both}
</style>
</head>

<body>
<div id="header">
   <div id="logo"><h1><a href="http://www.helloweba.com" title="返回helloweba首页">helloweba</a></h1></div>
</div>
<div id="main">
   <h2 class="top_title"><a href="http://www.helloweba.com/view-blog-193.html">一款基于jQuery的颜色拾取器</a></h2>
   <div class="demo">
   		<p>1.点击输入框选取颜色</p>
   		<input type="text" id="c1"/>
   </div>
   <div class="demo">
   		<p>2.点击选色按钮选取颜色</p>
        <input type="text" id="c2"/><input id="btn" type="button" value="选色" />
   </div>
   <div class="demo">
   		<p>3.点击方框选取颜色</p>
        <a href="javascript:void(0)" id="img"></a>
   </div>
   <div class="demo">
   		<p>4.选取多个颜色</p>
        <a href="javascript:void(0)" class="ku"></a>
        <a href="javascript:void(0)" class="ku"></a>
        <a href="javascript:void(0)" class="ku"></a>
        <a href="javascript:void(0)" class="ku"></a>
        <div class="clear"></div>
   </div>
   <div class="demo">
   		<p>5.自定义颜色块个数</p>
        <input type="text" id="c5"/>
   </div>
   
</div>
<div id="footer">
    <p>Powered by helloweba.com  允许转载、修改和使用本站的DEMO，但请注明出处：<a href="http://www.helloweba.com">www.helloweba.com</a></p>
</div>
<p id="stat"><script type="text/javascript" src="http://js.tongji.linezing.com/1870888/tongji.js?version={$version}"></script></p>
</body>
</html>
